﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Core.Web.Code.UI.Controls
{
    public partial class ViewPost : BaseControl
    {
        protected Repeater rptTopic;
        private int moduleId;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
                BindTopic();
        }

        private void BindTopic()
        {
            rptTopic.DataSource = _bllTopic.FindBy(o => o.ID > 0);
            rptTopic.DataBind();
        }
    }
}